/*
   欢迎使用AiWork安卓自动化IDE
   帮助文档: http://help.autoapp.net.cn
   官方地址: www.aiwork24.com
   qq群: 743723025
*/
Import("utils.js")

// 

logWindow.show()
logWindow.setWidth(screen.percentToWidth(0.95))
logWindow.setHeight(screen.percentToHeight(0.9))
print.log('-------------------------------------')
print.log('-------------------------------------')
print.log('核心线程执行次数: ' + getExcuteFuncTimes('importThreadtimes'))
print.log('-------------------------------------')
print.log('抖音极速版执行次数: ' + getExcuteFuncTimes('start_收集金币_DYJSB'))
print.log('抖音极速版浏览任务次数: ' + getExcuteFuncTimes('start_浏览任务_DYJSB'))

print.log('开宝箱次数: ' + getExcuteFuncTimes('open_开宝箱_DYJSB'))
print.log('开宝箱成功次数: ' + getExcuteFuncTimes('open_开宝箱_DYJSB_成功打开'))

print.log('听红包雨次数: ' + getExcuteFuncTimes('open_红包雨听_DYJSB'))
if (getExcuteFuncTimes('open_红包雨听_DYJSB_低金币次数') > 0) {
   print.warn('听红包雨低金币次数: ' + getExcuteFuncTimes('open_红包雨听_DYJSB_低金币次数'))
}
print.log('听红包雨成功领取红包次数: ' + getExcuteFuncTimes('open_红包雨听_DYJSB_成功领取红包次数'))

print.log('看红包雨次数: ' + getExcuteFuncTimes('open_红包雨看_DYJSB'))
print.log('看红包雨进入领红包雨界面: ' + getExcuteFuncTimes('open_红包雨看_DYJSB_进入领红包雨界面'))
print.log('看红包雨成功领取红包次数: ' + getExcuteFuncTimes('open_红包雨看_DYJSB_成功领取红包次数'))
if (hasExcuteFunc('open_红包雨看_DYJSB_异常2金币')) {
   print.err('红包雨听获取2金币, 判定异常!!!')
}
if (hasExcuteFunc('open_红包雨听_DYJSB_低金币_需要养号')) {
   print.warn('红包雨听低金币达到9次, 进行广告转化')
}
if (getExcuteFuncTimes('start_红包雨听_获取金币') >= 3) {
   print.err('红包雨听持续失败3次, 判定异常!!!')
}
if (getExcuteFuncTimes('start_红包雨看_获取金币') >= 3) {
   print.err('红包雨看持续失败3次, 判定异常!!!')
}
print.log('-------------------------------------')
print.log('红果红包雨执行次数: ' + getExcuteFuncTimes('open_金币红包雨_HG'))
print.log('百度极速版执行次数: ' + getExcuteFuncTimes('start_收集金币_BDJSB'))
print.log('看小说执行次数: ' + getExcuteFuncTimes('start_看小说任务_BDJSB'))
if (hasExcuteFunc('start_看小说任务_BDJSB')) {
   print.log('看小说任务完成!')
}
print.log('浏览短剧执行次数: ' + getExcuteFuncTimes('start_浏览任务_BDJSB'))

print.log('-------------------------------------')
print.log('快手极速版执行次数: ' + getExcuteFuncTimes('start快手极速版的浏览任务'))
print.log('快手极速版收集金币执行次数: ' + getExcuteFuncTimes('start_收集金币_KSJSB'))
print.log('快手执行次数: ' + getExcuteFuncTimes('start快手的浏览任务'))
print.log('快手收集金币执行次数: ' + getExcuteFuncTimes('start_收集金币_KS'))

print.log('-------------------------------------')
print.log('抖音火山版执行次数: ' + getExcuteFuncTimes('start_收集金币_DYHSB'))
print.log('抖音火山版挂机任务次数: ' + getExcuteFuncTimes('start_挂机任务_DYHSB'))
if (hasExcuteFunc('start_浏览任务_DYHSB')) {
   print.log('抖音火山版浏览任务完成!')
}